class = require'lib.middleclass'
Stateful = require'lib.stateful'
require'lib.AnAL'
require'src.util'
require'src.game'
require'src.entity'


function love.load()	
	game = Game:new()
end

function love.update(dt)
	dt = math.min(0.01666667, dt)
	game:update(dt)
end

function love.draw()
	game:draw()
end

function love.keypressed(key, isRepeat)
	game:keypressed(key, isRepeat)
end

function love.keyreleased(key)
	game:keyreleased(key)
end

function love.mousepressed(x, y, button)
	game:mousepressed(x, y, button)
end

function love.mousereleased(x, y, button)
	game:mousereleased(x, y, button)
end

function love.quit()
	game:quit()
end